﻿<%@ Page Title="Wish" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="WishInvite.aspx.cs" Inherits="WishInvite" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
     <div>
    <table border = "0" style="width: 409px">

    <tr>

        <td>

            <asp:Label ID="Label1" runat="server" Text="Name"></asp:Label><br />

        </td>

        <td>

            <asp:TextBox ID="txtName" runat="server" ValidationGroup = "contact"></asp:TextBox><br />

            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" 

             ControlToValidate = "txtName" ValidationGroup="wish"></asp:RequiredFieldValidator> 

        </td>

    </tr>

    <tr>

        <td>

            <asp:Label ID="Label2" runat="server" Text="Subject*"></asp:Label><br />

        </td>

        <td>

            <asp:TextBox ID="txtSubject" runat="server"></asp:TextBox><br />

            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" 

             ControlToValidate = "txtSubject" ValidationGroup="wish"></asp:RequiredFieldValidator>

        </td>

    </tr>

    <tr>

        <td>

            <asp:Label ID="Label3" runat="server" Text="Email*"></asp:Label><br />

        </td>

        <td>

            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox><br />

            <asp:RegularExpressionValidator id="valRegEx" runat="server"

            ControlToValidate="txtEmail"

            ValidationExpression=".*@.*\..*"

            ErrorMessage="*Invalid Email address."

            display="dynamic">

            </asp:RegularExpressionValidator>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" 

            ControlToValidate = "txtEmail"></asp:RequiredFieldValidator>

        </td>

    </tr>

    <tr>

        <td valign = "top" >

            <asp:Label ID="Label4" runat="server" Text="Body*"></asp:Label>

        </td>

        <td>

            <asp:TextBox ID="txtBody" runat="server" TextMode = "MultiLine" ></asp:TextBox><br />

            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" 

            ControlToValidate = "txtBody" ValidationGroup="wish"></asp:RequiredFieldValidator>

        </td>

    </tr>

     <tr>

        <td></td>

        <td>

            &nbsp;</td>

    </tr>

    <tr>

        <td></td>

        <td>

            <asp:Button ID="btnSend" runat="server" Text="Send" onclick="btnSend_Click" ValidationGroup="wish"  />

       </td>

    </tr>

    <tr>

        <td></td>

        <td>

            <asp:Label ID="lblMessage" runat="server" Text="" ForeColor = "Green"></asp:Label>

       </td>

    </tr>

</table>
    <table>
        <tr>
            <td>

            </td>
            <td>

            </td>
        </tr>
        <tr>
            <td>

            </td>
            <td>

            </td>
        </tr>
        <tr>
            <td>

            </td>
            <td>

            </td>
        </tr>
        <tr>
            <td>

            </td>
            <td>

            </td>
        </tr>
    </table>
         </div>
</asp:Content>

